package com.yunxi.finance.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆价格类型
 * </p>
 *
 * @author 
 * @since 2019-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)

@ApiModel(value="BaseVehiclePriceType对象", description="车辆价格类型")
public class VehiclePriceTypeVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String priceTypeId;

    @ApiModelProperty(value = "价格类型代码")
    private String priceTypeCode;

    @ApiModelProperty(value = "价格类型名称")
    private String priceTypeName;


    @ApiModelProperty(value = "状态1启用0禁用")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "0价格1折扣2返利")
    private Integer type;

    private String typeCn;

    public void setType(Integer type) {
        this.type = type;
        if(type!=null){
            if(type==0) typeCn = "价格大类";
            if(type==1) typeCn = "折扣大类";
            if(type==2) typeCn = "返利大类";
        }
    }
}
